package com.example.minzhengtong.ui

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.example.minzhengtong.base.BaseA
import com.example.minzhengtong.databinding.ActivityGjjChooseBinding
import com.example.minzhengtong.databinding.ActivityGjjDetailBinding
import com.gyf.immersionbar.ImmersionBar

/**
 * created by WY on 2021/5/31
 * 公积金个人账户明细.
 */
class GjjChooseA : BaseA() {

    companion object{
        fun enterThis(context: Context){
            val intent = Intent(context,GjjChooseA::class.java)
            context.startActivity(intent)
        }
    }

    private lateinit var binding : ActivityGjjChooseBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        overridePendingTransition(0,0)
        binding = ActivityGjjChooseBinding.inflate(layoutInflater)
        setContentView(binding.root)
        setToolBarVisiabale(false)

        ImmersionBar.with(this).titleBar(binding.titleBar).statusBarDarkFont(true).init()

        /**
         * 缴存证明
         */
        binding.detail.setOnClickListener {
            PersonalProveA.enterThis(baseContext)
        }

        /**
         * 账户明细
         */
        binding.account.setOnClickListener {
            PersonalDetailA.enterThis(baseContext)
        }

    }

    override fun finish() {
        super.finish()
        overridePendingTransition(0,0)
    }

}